import sqlite3

conn = sqlite3.connect('test.db')
cursor = conn.cursor()

# 假设设成“问题，答案”
cursor.execute('''CREATE TABLE userdata
               (question TEXT PRIMARY KEY NOT NULL, answer TEXT)''')

conn.commit()
conn.close()
